﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DATA;
namespace BUS
{
   public class ProductBUS
    {
       public List<Product> GetAllProducts()
        {
            ProductsREP acc = new ProductsREP();
            return acc.GetAllProducts();
        }
       public List<Product> GetActiveProducts()
        {
            ProductsREP acc = new ProductsREP();
            return acc.GetActiveProducts();
        }

       public bool AddProduct(Product newAccount)
        {
            ProductsREP acc = new ProductsREP();
            return acc.AddProduct(newAccount);
        }
       public void deleteProduct(int AccountID)
        {
            ProductsREP acc = new ProductsREP();
            acc.deleteProduct(AccountID);
        }
       public bool UpdateProduct(Product accountup)
        {
            ProductsREP acc = new ProductsREP();
            return acc.UpdateProduct(accountup);


        }

    }
}
